package com.system.vote.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.system.vote.admin.entity.SysMemo;
import com.system.vote.admin.service.SysMemoService;
import com.system.vote.admin.mapper.SysMemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * @description 针对表【sys_memo(备忘录)】的数据库操作Service实现
 * @createDate 2023-11-06 17:46:05
 */
@Service
public class SysMemoServiceImpl extends ServiceImpl<SysMemoMapper, SysMemo>
        implements SysMemoService {

    @Autowired
    private SysMemoMapper sysMemoMapper;

    @Override
    public SysMemo getByTitle(String title) {
        return sysMemoMapper.selectOne(new QueryWrapper<SysMemo>().eq("title", title));
    }
}




